<?php /* Smarty version Smarty-3.1.13, created on 2014-11-01 00:44:59
         compiled from "D:\workspace\php\cms\templates\admin\users\useredit\user_integral_modify.tpl" */ ?>
<?php /*%%SmartyHeaderCode:325175450e36adcadf9-85270779%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '9a64cbe8048df153168621bb7568f281280ec18b' => 
    array (
      0 => 'D:\\workspace\\php\\cms\\templates\\admin\\users\\useredit\\user_integral_modify.tpl',
      1 => 1414773537,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '325175450e36adcadf9-85270779',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.13',
  'unifunc' => 'content_5450e36adda7f4_88470627',
  'variables' => 
  array (
    'web_root' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5450e36adda7f4_88470627')) {function content_5450e36adda7f4_88470627($_smarty_tpl) {?><script type="text/javascript">
 
	 function modify(){

		 $.ajax({
	            type: "POST",
	            data: $("#integralModify").serialize(),
	            url: '<?php echo $_smarty_tpl->tpl_vars['web_root']->value;?>
admin/users/userOriginModify',
	            success:function(data){
	            	$('#grid').datagrid('reload');
	                t_modelhide("user_integral_modify") ;
			    },
	            error: function () {
	            }

	        });
	        
	 }
	 
</script>

<div id="user_integral_modify" class="modal hide fade">
	<div class="modal-header">
		<button type="button" class="close" data-dismiss="modal"
			aria-hidden="true">&times;</button>
		<h3>用户积分修改</h3>
	</div>
	<div class="modal-body">
		<form class="form-horizontal"  id="integralModify">

			<input id="integralModify_type" name="type" type="text"
				style="display: none;"> <input id="integralModify_userid"
				name="userid" type="text" style="display: none;">
				<input id="integralModify_username"
				name="username" type="text" style="display: none;">
			<div class="control-group">
				<label class="control-label">类型:</label>
				<div class="controls">
					<input type="text" name="integral_contype" id="integral_contype" />
				</div>
			</div>
			<div class="control-group">
				<label class="control-label">积分数:</label>
				<div class="controls">
					<input type="text" name="integral" id="integral" />
				</div>
			</div>
			<div class="control-group">
				<label class="control-label">积分类型:</label>
				<div class="controls">
						<select id="STATUS" name="content" >
								<option value="0">抽奖获取</option>
								<option value="1">推荐获取</option>
								<option value="2">积分申请</option>
								<option value="3">管理员给予</option>
								
								<option value="10">兑换现金</option>
								<option value="11">兑换商品</option>
						</select>
				</div>
			</div>

			<div class="control-group">
				<label class="control-label">描述:</label>
				<div class="controls">
					<input type="text" name="desc" id="desc" />
				</div>
			</div>
		</form>
	</div>
	<div class="modal-footer" id="div_view">
	<button class="btn btn-success" type="button" onclick="modify()"
					style="width: 100px; align: right;" class="btn">提交</button>
					</div>
</div>


</div><?php }} ?>